<?php
/**
 * internal app error...
 * only show when in localhost
 */
$_SERVER['SERVER_NAME'] == 'localhost' or die('INTERNAL APP ERROR');
$e instanceof Magnum_Exception or die('INTERNAL APP ERROR');
?>
<html>
<head>
<title>404 - file not found</title>
<style>
body{
    padding:12px;
    margin:12px;
    color:#fff;
    background:#000;
    font:bold 13px 'lucida sans', arial, verdana;
    line-height:1.5;
    text-align:center;
}

a{
    color:#ccc;
    text-decoration:none;
}

h1{
    text-shadow: 2px 2px 2px #000, -2px -2px 2px #000;
    margin:0;
    color:#45aaff;font-size: 20px;border-bottom:2px solid #333; padding:12px;text-align:center;
}

#wrapper{
    margin: 32px auto; width:900px;
}

a:hover{
    color:#fff;
}

#block{
    text-align:left;padding:20px;width:860px;background:#222;
    border:4px solid #222;
    -moz-border-radius:12px;
    -webkit-border-radius:12px;
    /* hidden gems! - box shadow */
    -moz-box-shadow: 3px 3px 9px #163C52, -3px -3px 9px #163C52, 3px 3px 22px #fff, -3px -3px 22px #fff;
	-webkit-box-shadow: 3px 3px 9px #163C52, -3px -3px 9px #163C52, 3px 3px 22px #fff, -3px -3px 22px #fff;
    box-shadow: 3px 3px 9px #163C52, -3px -3px 9px #163C52, 3px 3px 22px #fff, -3px -3px 22px #fff;
}

table{
    color:#fff;font-size:12px;
}

table th,
table td{
    vertical-align:top;
    padding:6px 12px;
    overflow:auto;
}

table td pre{
    font-size:13px;
    color:#ff0;
    overflow:auto;
    width:750px;
    float:left;
}
</style>
</head>
<body>
<div id="wrapper">
    <div id="block">
        <h1>INERNAL APP ERROR</h1>
        <table>
            <tr>
                <th>Message</th>
                <td><?php echo $e->getMessage(); ?></td>
            </tr>
            <tr>
                <th>File</th>
                <td><?php echo $e->getFile(); ?></td>
            </tr>
            <tr>
                <th>Line</th>
                <td><?php echo $e->getLine(); ?></td>
            </tr>
            <tr>
                <th>Trace</th>
                <td><pre><?php echo $e->getTraceAsString(); ?></pre></td>
            </tr>
        </table>
    </div>
</div>
</body>
</html>